﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace FridgeManagerApp
{
    public class LOffice : WOffice
    {
        private bool isChoose;
        public bool IsChoose
        {
            get
            {
                return isChoose;
            }
            set
            {
                isChoose = value;
                RaisePropertyChanged("IsChoose");
            }
        }

        private String districtName;
        public String DistrictName
        {
            get
            {
                return districtName;
            }
            set
            {
                districtName = value;
                RaisePropertyChanged("DistrictName");
            }
        }

        private String districtSelected;
        public String DistrictSelected
        {
            get
            {
                return districtSelected;
            }

            set
            {
                districtSelected = value;
                RaisePropertyChanged("DistrictSelected");
            }
        }

        private ObservableCollection<String> districts = new ObservableCollection<String>();
        public ObservableCollection<String> Districts
        {
            get
            {
                return districts;
            }

            set
            {
                districts = value;
                RaisePropertyChanged("Districts");
            }
        }

        public LOffice()
        {
            IsChoose = false;
            OfficeUID = -1;
            OfficeName = "";
            PersonnelUID = -1;
            DistrictUID = -1;
            Position = "";
            Phone = "";
            DistrictSelected = DistrictName;
            Person = new WPersonnel();
        }
    }
}
